package com.medicine.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.medicine.common.base.AutoEntity;
import lombok.Data;

import java.util.List;

@Data
@TableName("cm_category")
public class Category extends AutoEntity<Category> {


    private String name;

    private String orgId;

    private String parentCid;

    private Integer sort;

    private String catId;


    @TableField(exist = false)   //此注解标注不是数据库字段
    private List<Category> children;


}
